]> dgit.raspbian.org Git - gnome-shell.git/commit
bluetooth: Do not sync() immediately on model changes
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 3 Apr 2020 18:27:34 +0000 (20:27 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 7 Apr 2020 13:44:50 +0000 (15:44 +0200)
commit456ca3d3e09b761f6506497444306a8cf3c4ffe7
tree685be350549a733524d7d92799dfe569f63b31d6
parentf4ba3e4ab8c8d524cb296bc329c1d07b84750a3c
bluetooth: Do not sync() immediately on model changes

Our intended behavior when bluetooth is turned off is to keep
the menu visible if devices had been set up previously.

However since gnome-bluetooth@c437c729, devices are removed
first before removing the default adapter, so we now end up
always setting the property to false before checking for it.

Fix this by deferring all model changes to an idle, so that
we can process them as a unit. Do the same for proxy property
changes, as those may trigger a row-removal.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1174
js/ui/status/bluetooth.js